package com.tushikeji.facecar.utils;

import android.util.Base64;

import java.io.UnsupportedEncodingException;

/**
 * Created by Administrator on 2017/11/24.
 */

public class Base642StrUtils {
    public static String DecodeBase642Json(String base64data) {
        String jsonData = null;
        StringBuilder sb = new StringBuilder(base64data);
        try {
            jsonData = new String(Base64.decode(sb.reverse().toString(), 0), "utf-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return jsonData;
    }
}
